home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 904 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.3 KB

  1. Path: news.compuserve.com!newsmaster
  2. From: 100754.2730@compuserve.com (Martin Aupperle)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Constructor Exceptions
  5. Date: Mon, 08 Jan 1996 08:08:13 GMT
  6. Organization: CompuServe Incorporated
  7. Message-ID: <4cqjps$337@dub-news-svc-1.compuserve.com>
  8. References: <4bud9g$pv5@oxy.rust.net> <4cbhcl$kst@dawn.mmm.com> <4ce68n$8u4@sundog.tiac.net> <4ch1c3$bsm@oxy.rust.net>
  9. NNTP-Posting-Host: ad35-142.compuserve.com
  10. X-Newsreader: Forte Free Agent v0.56
  11.  
  12. pgunn@mail.cbf.com (Paul Gunn) wrote:
  13.  
  14.  
  15. >Here is an excerpt from the Visual C++ 2.1 documentation. It seems to
  16. >indicate that 'this' will not be cleaned up.
  17.  
  18. [snip]
  19.  
  20. Visual C++ 2.1 does not implement exception handling as part of the
  21. language. Instead, you use macros that translate into a simulation. If
  22. I remember right, constructors are not the only area where that
  23. mechanism does not work correctly. Stack unwinding and destroying
  24. already created subobjects do not work either. Also, you have to
  25. derive your exception classes from a certain base class.
  26. So MSVC's exceptions can be used if you are careful and are aware of
  27. the drawbacks. 
  28.  
  29. Why don't you use MSVC 4.0 or Borland? They implement exceptions
  30. correctly.
  31.  
  32.  
  33.  
  34.  
  35.  
  36. -----------------------------------
  37. Signatures are a waste of bandwidth
  38. -----------------------------------
  39.  
  40.